{"version":3,"sources":["item.js"],"names":["BX","namespace","UI","ActionPanel","Item","options","this","id","type","text","html","icon","title","iconOnly","additionalClassForPanel","submenuOptions","isString","JSON","parse","e","buttonIconClass","onclick","href","items","actionPanel","attributes","prop","getObject","dataset","disabled","layout","container","prototype","changeIconClass","iconClass","removeClass","addClass","render","selectorType","className","isArray","length","create","props","children","events","click","handleMainClick","bind","handleMenuClick","attrs","role","handleClick","setAttribute","adjust","hide","show","showAsInlineBlock","style","destroy","remove","isVisible","offsetTop","isNotFit","offsetHeight","event","isDisabled","preventDefault","openSubMenu","isFunction","call","disable","data","classList","add","enable","bindElement","popupMenuOptions","angle","zIndex","offsetLeft","offsetWidth","closeByEsc","onPopupClose","popupMenu","mergeEx","PopupMenu","menuContainer"],"mappings":"CAAC,WAED,aAEAA,GAAGC,UAAU,SAEbD,GAAGE,GAAGC,YAAYC,KAAO,SAASC,GAEjCC,KAAKC,GAAKF,EAAQE,GAClBD,KAAKE,KAAOH,EAAQG,KACpBF,KAAKG,KAAOJ,EAAQI,KACpBH,KAAKI,KAAOL,EAAQI,KACpBH,KAAKK,KAAON,EAAQM,KACpBL,KAAKM,MAAQP,EAAQO,MACrBN,KAAKO,SAAWR,EAAQQ,SACxBP,KAAKQ,wBAA0BT,EAAQS,wBACvCR,KAAKS,kBACL,GAAIV,EAAQU,gBAAkBf,GAAGQ,KAAKQ,SAASX,EAAQU,gBACvD,CACC,IAECT,KAAKS,eAAiBE,KAAKC,MAAMb,EAAQU,gBAE1C,MAAOI,KAIRb,KAAKc,gBAAkBf,EAAQe,gBAC/Bd,KAAKe,QAAUhB,EAAQgB,QACvBf,KAAKgB,KAAOjB,EAAQiB,KACpBhB,KAAKiB,MAAQlB,EAAQkB,MACrBjB,KAAKkB,YAAcnB,EAAQmB,YAC3BlB,KAAKD,QAAUA,EACfC,KAAKmB,WAAazB,GAAG0B,KAAKC,UAAUtB,EAAS,cAC7CC,KAAKsB,QAAUvB,EAAQuB,QACvBtB,KAAKuB,SAAW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